/*********************
* Author:Dzlua
* QQ:505544956
* time:2016/09/06
*/
#ifndef __EDUI_TILELAYOUT_H__
#define __EDUI_TILELAYOUT_H__

#include "Container.h"

EDUI_NAMESPACE_BEGIN

class EDUI_API TileLayout : public Container
{
protected:
    TileLayout();
    virtual ~TileLayout();
public:
	static TileLayout* GetInterface();
	virtual void Release();
    static TileLayout* ToTileLayout(Control* ctrl);
public:
    void SetItemSize(int w, int h);
    Size GetItemSize();
    void SetColumns(int columns);
    int  GetColumns();
public:
    virtual void AutoLayout();
    virtual void SetAttribute(const char* name, const char* value);
protected:
    int m_columns;
    Size m_itemSize;
};

EDUI_NAMESPACE_END

#endif
